package lanqiao;

public class 跑步 {
    public static void main(String[] args) {
         int[] days=new int[]{31,28,31,30,31,30,31,31,30,31,30,31};
         int ans = 0;
         int cur = 6;
        for (int i = 2000; i <=2020; i++) {
            if (i%4==0 && i%100!=0 | i%400==0) {
                days[1]=29;
            }else {
                days[1]=28;
            }
            for (int j = 0; j <days.length ; j++) {
                for (int k = 1; k <= days[j]; k++) {
                    ans++;
                    if (cur==8){
                        cur=1;
                    }
                   if (k==1 || cur==1){
                       ans++;
                   }
                   cur++;
                   if (i==2020 && j==9 && k==1){
                       System.out.println(ans);
                   }
                }
            }

        }
    }

}
